home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: ODF and printing
- Sent: 8/8/96 1:12 AM
- Received: 8/8/96 8:57 AM
- From: Oliver Breidenbach, oliver@boinx.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Henri,
-
- >Did you try to print your part using another container (ODFDraw) or
- >implement printing in your part and check what was the output.
-
- thanks for your reply. Yes, I checked printing with ODFDraw R1 and got
- the same result. No, we did not implement printing ourselves. I had a
- look at the docmentation for implementing printing, but it only deals
- with the problem of not rendering certain portions of your view and
- changeing the print dialogs.
-
- As I said we just changed the Hello demo part code:
-
- void CLotsOSwimmersFrame::Draw(Environment *ev, ODFacet* odFacet,
- ODShape* invalidShape) // Override
- {
- FW_CViewContext fc(ev, this, odFacet, invalidShape);
- FW_CRect invalidRect;
- fc.GetClipRect(invalidRect);
-
- fLotsOSwimmersContent->GetTextData().ExportCString(code);
-
- FW_CRectShape::RenderRect(fc, invalidRect, FW_kFill,
- FW_kWhiteEraseInk);
-
- FW_CRect lotsoSwimmersRect = GetBounds(ev)
-
- FW_CPoint myX = lotsoSwimmersRect.TopLeft();
- FW_CPoint myY = lotsoSwimmersRect.BotLeft();
-
- // Here some code that calculates a float y
-
- for (float y = 0.5; y < 16.0; y = y + 0.8)
- {
- FW_CRect myRect = FW_CRect( myX + FW_CPoint(FW_DoubleToFixed(y),
- FW_DoubleToFixed( 5.0)), myY + FW_CPoint(FW_DoubleToFixed(y + 0.3),
- FW_DoubleToFixed(-25.0)));
-
- FW_CRectShape::RenderRect(fc, myRect, FW_kFill,
- FW_CInk(FW_kRGBBlack));
- }
- }
-
-
-
-
-